package com.lwm.dto;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
public class PageParams <T> {
    public PageParams(Integer page, Integer size, Integer total, T data) {
        this.page = page <= 0 ?  1 : page;
        this.size = size;
        this.total = total;
        this.data = data;
    }
    private Integer page;
    private Integer size;

    private Integer total;

    private T data;
}
